<?php
/**
 *
 *
 *
 */
session_start();
include_once('../Model/User.php');
include_once('../Model/UserDetail.php');
include_once('../Model/Status.php');

if(isset($_GET)) {

	// Get userName. passWord from request
	$userID = $_GET['userID'];
	$myID = $_SESSION['USER_ID'];

	$user = new User();
	$userDetail = new UserDetail();
	$status = new Status();

		// Get friends list
		$friends = $user->getFriendsList($myID);
		//Get Status list
		$statuss = $status->getStatussList($userID);

		$user = $user->getUser($userID);
		$userDetail = $userDetail->getUserDetail($userID);

		// Truyen qua userInfo mot doi tuong UserDetail
		//$userID = ;
		//

		require_once('../View/v_UserInfo.php');
}
?>